package test_11_23;

public class test11_23_3 {
    public static int max2(int x1,int x2)
    {
        if(x1>x2)
            return x1;
        else
            return x2;
    }
    public static int max3(int x1,int x2,int x3)
    {
        return max2(max2(x1,x2),x3);
    }

    public static void main(String[] args) {
        int result2 = max2(10,20);
        int result3 = max3(10,20,30);
        System.out.println(result2);
        System.out.println(result3);
    }

}
